package JDBC;

import java.sql.*;

class JDBCTest1 {
	public static void main(String str[]) {
		Connection con = null;
		Statement st = null;
		try {
			Class.forName("oracle.jdbc.driver.OracleDriver");
			con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "system", "password");
			String qry = "insert into studentinfo values(12,'Nivas','nivas@gmail.com')";
			st = con.createStatement();
			int x = st.executeUpdate(qry);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}